package com.zwkj.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zwkj.pojo.vo.UserPermissionVo;
import com.zwkj.pojo.vo.WUserAclTVo;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

import org.springframework.beans.BeanUtils;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zwkj.domain.WUserAclT;
import com.zwkj.service.IWUserAclTService;
import com.zwkj.mapper.WUserAclTMapper;
import org.springframework.stereotype.Service;

/**
 * @author 小间隙
 * @description 针对表【w_user_acl_t】的数据库操作Service实现
 * @createDate 2023-12-11 11:33:02
 */
@Service
public class WUserAclTServiceImpl extends ServiceImpl<WUserAclTMapper, WUserAclT>
        implements IWUserAclTService {

    @Autowired
    private IWUserAclTService wUserAclTService;
    @Autowired
    private WUserAclTMapper userAclTMapper;

    @Override
    public void addWUserAclT(WUserAclTVo wUserAclTVo) {
        WUserAclT wUserAclT = new WUserAclT();
        BeanUtils.copyProperties(wUserAclTVo, wUserAclT);

        wUserAclTService.save(wUserAclT);
    }

    @Override
    public IPage<WUserAclTVo> getWUserAclTPageList(IPage<WUserAclTVo> page, WUserAclTVo wUserAclTVo) {
        return this.baseMapper.getWUserAclTPageList(page, wUserAclTVo);
    }


    @Override
    public List<WUserAclTVo> getWUserAclTList(WUserAclTVo wUserAclTVo) {
        return this.baseMapper.getWUserAclTList(wUserAclTVo);

    }

    @Override
    public WUserAclT getWUserAclTById(String id) {
        return wUserAclTService.getById(id);
    }


    @Override
    public void delWUserAclT(String id) {
        wUserAclTService.removeById(id);
    }


    @Override
    public void updateWUserAclT(WUserAclTVo wUserAclTVo) {
        WUserAclT wUserAclT = new WUserAclT();
        BeanUtils.copyProperties(wUserAclTVo, wUserAclT);
        wUserAclTService.updateById(wUserAclT);
    }
}




